package com.ybc.future;

import java.util.concurrent.Callable;

//这玩意儿是借助线程 执行东西 然后有返回值的
public class MyFutureThread {

    private Callable callable;


    public MyFutureThread(Callable callable){
        this.callable = callable;
    }

    public MyFuture start()
    {
        MyFuture myFuture = new MyFuture(callable);
        new Thread(myFuture).start();
        return myFuture;
    }
}
